// 配置请求
import {
  $http
} from '@escook/request-miniprogram'
//配置根路径
$http.baseUrl = 'http://47.102.116.194:3000/'
//请求拦截
$http.beforeRequest = function(options) {
  uni.showLoading({
    title: '加载中....'
  })
}
// 响应拦截
$http.afterRequest = function() {
  uni.hideLoading()
}
export default $http